package bean;

import java.math.BigDecimal;

public class Television {
    private Integer id;
    private String name;
    private BigDecimal price;
    private String screenSize;
    private String resolution;
    private String model;
    private String imageUrl;
    private String description;
    private SubCategory subCategory;

    // 无参构造函数
    public Television() {
    }

    // 有参构造函数
    public Television(Integer id, String name, BigDecimal price,
                     String screenSize, String resolution, String model, String imageUrl,
                     String description, SubCategory subCategory) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.screenSize = screenSize;
        this.resolution = resolution;
        this.model = model;
        this.imageUrl = imageUrl;
        this.description = description;
        this.subCategory = subCategory;
    }

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getScreenSize() {
        return screenSize;
    }

    public void setScreenSize(String screenSize) {
        this.screenSize = screenSize;
    }

    public String getResolution() {
        return resolution;
    }

    public void setResolution(String resolution) {
        this.resolution = resolution;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public SubCategory getSubCategory() {
        return subCategory;
    }

    public void setSubCategory(SubCategory subCategory) {
        this.subCategory = subCategory;
    }

    @Override
    public String toString() {
        return "Television{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", screenSize='" + screenSize + '\'' +
                ", resolution='" + resolution + '\'' +
                ", model='" + model + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", description='" + description + '\'' +
                ", subCategory=" + subCategory +
                '}';
    }
} 